package com.navi.loaddata.core.oracleEntity.fileMapping;

import javax.persistence.*;

/**
 * Created by ghost on 2018/5/8.
 */
@Entity
@Table(name = "ETL_CELL2_CHIP_MAPPING_V", schema = "EDALDR", catalog = "")
public class EtlCell2ChipMappingV {
    private String chipId;
    private String arrayChipId;
    private String cfChipId;

    @Id
    @Column(name = "CHIP_ID")
    public String getChipId() {
        return chipId;
    }

    public void setChipId(String chipId) {
        this.chipId = chipId;
    }

    @Basic
    @Column(name = "ARRAY_CHIP_ID")
    public String getArrayChipId() {
        return arrayChipId;
    }

    public void setArrayChipId(String arrayChipId) {
        this.arrayChipId = arrayChipId;
    }

    @Basic
    @Column(name = "CF_CHIP_ID")
    public String getCfChipId() {
        return cfChipId;
    }

    public void setCfChipId(String cfChipId) {
        this.cfChipId = cfChipId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        EtlCell2ChipMappingV that = (EtlCell2ChipMappingV) o;

        if (chipId != null ? !chipId.equals(that.chipId) : that.chipId != null) return false;
        if (arrayChipId != null ? !arrayChipId.equals(that.arrayChipId) : that.arrayChipId != null) return false;
        if (cfChipId != null ? !cfChipId.equals(that.cfChipId) : that.cfChipId != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = chipId != null ? chipId.hashCode() : 0;
        result = 31 * result + (arrayChipId != null ? arrayChipId.hashCode() : 0);
        result = 31 * result + (cfChipId != null ? cfChipId.hashCode() : 0);
        return result;
    }
}
